﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Util.Helper;
using Model.Cms;
using BLL.Cms;
namespace Com.Ompchina.Web.UIControl
{
    public partial class NewsList : System.Web.UI.UserControl
    {
        public int ParentTerm { get; set; }
        protected WebHelper helper = new WebHelper();
        private NewsBLL bll = new NewsBLL();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected IList<NewsInfo> _GetNews(int top)
        {
            return bll.FrontListByParentTerm(ParentTerm, top);
        }
    }
}